package com.milloc.db.dto;

import lombok.Data;
import org.springframework.data.domain.PageRequest;

/**
 * @author gongdeming
 * @create 2019-08-27
 */
@Data
public class PageDTO {
    private int pageSize = 10;
    private int pageNum = 0;

    public PageRequest pageRequest() {
        return PageRequest.of(pageNum, pageSize);
    }
}
